package qnb.entity;

/**
 *  多条件查询实体类
 */
public class Condition {
    private Integer page;       //当前页码
    private Integer start;      // 数据库从哪一条数据开始查
    private Integer rows;       //每页显示的行数
    private String order = "DESC";       //排序方式


    public Integer getStart() {
        return ((this.getPage() - 1) * this.getRows());
    }

    public void setStart(Integer start) {
        this.start = start;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getRows() {
        return rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }
}
